package com.ham.mud.commands;

import com.ham.mud.ServerConnection;
import com.ham.mud.characters.player.PlayerService;

/**
 * Created by hlucas on Jun 16, 2011 at 12:50:21 PM
 */
public class QuitCommand extends PlayerCommand {
    @Override
    protected String getCommandName() {
        return "quit";
    }

    @Override
    public void execute(ServerConnection connection, String[] params) {
        PlayerService.save(connection.getPlayer());
        connection.close();
    }
}
